#ifndef ENCODER_H_
#define ENCODER_H_

#include "IntReader.h"
//#include "IntWriter.h"
#include "BitReader.h"
#include "BitWriter.h"
#include <math.h>
#include "../utiles/StringUtil.h"
#include <string.h>

class Encoder {
public:
        long eliasGammaEncode(long source, char* dest);
        long eliasGammaDecode(char* source);

        long binToDec(string number);
        string  decToBin(long number);

        long eliasDeltaEncode(long source, char* dest);
        long eliasDeltaDecode(char* source, long code = 0);
};

#endif /* ENCODER_H_ */

